<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>

	<link rel="stylesheet" type="text/css" href="/css/main.css">
	<link rel="stylesheet" type="text/css" href="/css/common.css">

	<!--메인슬라이드-->
	<style type="text/css">
		/*.clsBannerScreen {overflow: hidden; width:667px; cursor:pointer; }
		.clsBannerScreen .images{position:absolute; display:none; }
		ul, li {list-style:none; margin:0; padding:0; font-size:10pt; }
		.clsBannerButton {width:667px; cursor:pointer; border-bottom:0px solid #e1e1e1; position:absolute; bottom:10px; }
		.clsBannerButton li {width:22px;float:left;border-right:0px solid #e1e1e1;padding:2px;}
		.clsBannerButton li.fir {border-left:0px solid #e1e1e1;}
		.clsBannerButton li.labelOverClass {font-weight:bold;}*/
	</style>

	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script src="/js/lib/jquery.banner.js" type="text/javascript"></script>
	<script src="/js/utility/common_util.js" type="text/javascript"></script>
	<script type="text/javascript">
		function changeSlideBtn(index) {
			var a = $("#label_2 li a");
			
			var slideBtnTextOff = new Array(
				'<span class="num1"></span>금전궁합',
				'<span class="num2"></span>스타운세',
				'<span class="num3"></span>궁합연애',
				'<span class="num4"></span>이벤트'
			);
			var slideBtnTextOn = new Array(
				'<span class="num1"></span><em>금전궁합</em> 2%부족한 당신의 가슴을 든든하게 만들어주세요.',
				'<span class="num2"></span><em>스타운세</em> 멀게만 느껴졌던 스타들에 대해 속속들이 알고싶다면?',
				'<span class="num3"></span><em>궁합연애</em> 나의 동반자를 만나보세요. 별빛 찬란한 미래를 꿈꾸시나요?',
				'<span class="num4"></span><em>[이벤트]</em> VIP회원권 Silver 구매 시, Silver가격으로 `Gold 혜택`을 드립니다.'
			);

			for (i = 0; i < a.length; i++) {
				if (i == index) {
					a.eq(i).html(slideBtnTextOn[i]);
				} else {
					a.eq(i).html(slideBtnTextOff[i]);
				}
			}
		}
		// 메인 슬라이드
		$(function() {
			$("#bnscr").jQBanner({
				nWidth:667,
				nHeight:297,
				nCount:4,			//돌아갈 이미지 개수
				isActType:"up",	//움직일 방향 (left, right, up, down)
				nOrderNo:1,
				isStartAct:"N",
				isStartDelay:"Y",
				nDelay:5000,
				isBtnType:"li"
			});
		});
		
		$(document).ready(function() {
			
			// $(function(){
				// // 인터넷 익스플로러 8.0 미만이면
				// // alert("browser.ver="+$.browser.version);
				// if ($.browser.msie && parseInt($.browser.version,10) < 8) {
					// if (confirm('브라우저의 버전이 낮아 제대로 작동하지 않을 수도 있습니다.\n최신 브라우저를 설치하시겠습니까?')){
						// window.open('http://www.ie9.com/','','');
					// }
				// }
			// });
			
			//--------------------------------------------
			// 슬라이드 버튼
			//--------------------------------------------
			$("#label_2 li").each(function(index) {
				$(this).mouseover(function() {
					$(this).siblings().removeClass();
					$(this).addClass('on');
					changeSlideBtn(index);
				});
			});
			
			//--------------------------------------------
			// 추천 느낌 충만!
			//--------------------------------------------
			var recoDiv = $(".choice_cont");
			recoDiv.hide();
			recoDiv.eq(0).show();

			var recoCurIdx  = 0;
			var recoLastIdx = recoDiv.length-1;
			$(".cprev_bt").click(function() {
				recoDiv.hide();
				if (recoCurIdx > 0) {
					recoCurIdx--;
				} else {
					recoCurIdx = recoLastIdx;
				}
				recoDiv.eq(recoCurIdx).show();
			});

			$(".cnext_bt").click(function() {
				recoDiv.hide();
				if (recoCurIdx < recoLastIdx) {
					recoCurIdx++;
				} else {
					recoCurIdx = 0;
				}
				recoDiv.eq(recoCurIdx).show();
			});
			
			//--------------------------------------------
			// 오늘 태어난 스타 슬라이드
			//--------------------------------------------
			
			var starDiv = $(".slide div");
			starDiv.hide();
			starDiv.eq(0).show();

			var cur_idx  = 0;
			var last_idx = starDiv.length-1;
			
			$(".slide .next").click(function() {
				starDiv.hide();
				if (cur_idx < last_idx) {
					cur_idx++;
				} else {
					cur_idx = 0;
				}
				starDiv.eq(cur_idx).show(600);
				//alert("cur_idx:"+cur_idx);
			});
			
			$(".slide .pre").click(function() {
				starDiv.hide();
				if (cur_idx > 0) {
					cur_idx--;
				} else {
					cur_idx = last_idx;
				}
				starDiv.eq(cur_idx).show(600);
			});

			//--------------------------------------------
			// 스타 검색
			//--------------------------------------------
			
			var msg = '스타이름을 입력하세요.';
			$("#search_keyword").val(msg);
			$("#search_keyword").bind({
				focus: function() {
					if( $(this).val() == msg ) {
						$(this).val('');
					}
				},
				blur: function() {
					if( $(this).val() == '') {
						$(this).val(msg);
					}
				}
			});
			
			$("#frm_search").submit(function() {
				var keyword = $("#search_keyword").val();
				if (keyword == '' || keyword == msg) {
					alert('스타이름을 입력하세요.');
					$("#search_keyword").focus();
					return false;
				}
			});

			// 추천 스타이름 클릭시
			$(".bn_s li a").each(function(index) {
				// alert($(this).text());
				$(this).click(function() {
					$("#search_keyword").val($(this).text());
					$("#frm_search").submit();
				});
			});
			
			$("#frm_today").submit(function() {
				var user_name = $("#frm_today input:text[name=user_name]");
				var birth_hh = $("#frm_today select[name=birth_hh]");
				if (user_name.val() == '') {
					alert('이름을 입력하세요.');
					user_name.focus();
					return false;
				}
				if (!checkKorean(user_name.val())) {
					alert('이름은 한글만 입력하세요.');
					user_name.focus();
					return false;
				}
				if (birth_hh.val() == '') {
					alert('태어난 시각을 입력하세요.');
					birth_hh.focus();
					return false;
				}
			});
<?	if ($sess_userinfo['login_yn'] == 'N') : ?>
			$(function(){
				var user_id = getCookie('saveId');
				//alert('user_id='+user_id);
				if (user_id != '') {
					$("#cookieSaveId").attr('checked','checked');
					$("#frm_login #user_id").val(user_id);
				}
			});

			$("#frm_login").submit(function() {
				if ($("#cookieSaveId:checked").length == 1) {
					setCookie('saveId', $("#frm_login #user_id").val(), 100);
				} else {
					setCookie('saveId', '', 100);
				}
			});
<?	endif ?>

			if ($("#vip_receive_yn").val() == 'Y') {
				openPopup('/product/receive_vip',460,300);
			}
		});
		
<?	if ($sess_userinfo['login_yn'] == 'Y') : ?>
		function result(idx, user_name, sex, birth_yyyy, birth_mm, birth_dd) {
			//alert(user_name+','+sex+','+birth_yyyy+','+birth_mm+','+birth_dd);
			$("#frm_starbirth #idx").val(idx);
			$("#frm_starbirth #user_name").val(user_name);
			$("#frm_starbirth #sex").val(sex);
			$("#frm_starbirth #birth_yyyy").val(birth_yyyy);
			$("#frm_starbirth #birth_mm").val(birth_mm);
			$("#frm_starbirth #birth_dd").val(birth_dd);
			$("#frm_starbirth").submit();
		}

		// 스타 궁합 페이지로 이동
		function gunghap(idx, your_name, your_sex, your_birth_yyyy, your_birth_mm, your_birth_dd) {
			$("#frm_gunghap #artist_idx").val(idx);
			$("#frm_gunghap #your_name").val(your_name);
			$("#frm_gunghap #your_sex").val(your_sex);
			$("#frm_gunghap #your_birth_yyyy").val(your_birth_yyyy);
			$("#frm_gunghap #your_birth_mm").val(your_birth_mm);
			$("#frm_gunghap #your_birth_dd").val(your_birth_dd);
			$("#frm_gunghap").submit();
		}
<?	else : ?>
		function result(idx, user_name, sex, birth_yyyy, birth_mm, birth_dd) {
			alert('회원가입 후 이용가능합니다.');
			location.href = '/member/join';
		}

		// 스타 궁합 페이지로 이동
		function gunghap(your_name, your_sex, your_birth_yyyy, your_birth_mm, your_birth_dd) {
			alert('회원가입 후 이용가능합니다.');
			location.href = '/member/join';
		}
<?	endif ?>
	</script>

</head>

<body>
<form name="frm_starbirth" id="frm_starbirth" method="post" action="/unse/star/todaybirth/result">
	<input type="hidden" name="target_yyyy" id="target_yyyy" value="<?=date("Y",time());?>"  />
	<input type="hidden" name="idx" id="idx" value="" />
	<input type="hidden" name="user_name" id="user_name" value="" />
	<input type="hidden" name="sex" id="sex" />
	<input type="hidden" name="birth_yyyy" id="birth_yyyy" />
	<input type="hidden" name="birth_mm" id="birth_mm" />
	<input type="hidden" name="birth_dd" id="birth_dd" />
	<input type="hidden" name="birth_hh" id="birth_hh" value="0" />
	<input type="hidden" name="birth_solunar" id="birth_solunar" value="S_C" />
</form>
<form name="frm_gunghap" id="frm_gunghap" method="post" action="/unse/star/gunghap/form">
	<input type="hidden" name="artist_idx" id="artist_idx" />
	<input type="hidden" name="your_name" id="your_name" />
	<input type="hidden" name="your_sex" id="your_sex" />
	<input type="hidden" name="your_birth_yyyy" id="your_birth_yyyy" />
	<input type="hidden" name="your_birth_mm" id="your_birth_mm" />
	<input type="hidden" name="your_birth_dd" id="your_birth_dd" />
</form>

<input type="hidden" name="vip_receive_yn" id="vip_receive_yn" value="<?=$vip_receive_yn?>" />

<!-- 컨텐츠-->
<div id="wrap">
	<!-- Header -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_header.php'; ?>
	<!--// Header -->

	<!--커튼 데코레이션-->
	<div class="drapes">
		<p class="drap1"><img src="/images/main/drapes.png" /></p>
		<div class="drap2">
			<div class="ss_bn">
				<ul>
					<li><script language="javascript" src="http://ad1.sportschosun.com/js.kti/szo/unsin@scroll3"></script></li>
					<li><script language="javascript" src="http://ad1.sportschosun.com/js.kti/szo/unsin@scroll1"></script></li>
					<!--<li><script language="javascript" src="http://ad1.sportschosun.com/js.kti/szo/unsin@scroll2"></script></li>-->
				</ul>
			</div>
			<p><img src="/images/main/drapes.png" /></p>
		</div>
	</div>
	<!--//커튼 데코레이션-->
	<!-- 키비쥬얼배너 / 로그인박스 / 오늘의 운세 -->
	<div class="keybox">
		<div class="kcont">
			<!--키비주얼배너-->
			<div class="banner" id="bnscr">
				<div class="clsBannerScreen banner_img">
					<div class="images" style="display:block"><a href="/unse/star/total/main"><img src="/images/main/key_v01.png" /></a></div>
					<div class="images"><a href="/unse/money/mymoney/form"><img src="/images/main/key_v02.png" /></a></div>
					<div class="images"><a href="/unse/gunghap/main"><img src="/images/main/key_v03.png" /></a></div>
					<!--<div class="images"><a href="/bbs/event/read?idx=254"><img src="/images/main/key_v04.png" /></a></div>-->
					<div class="images"><a href="/product/package"><img src="/images/main/key_v05.png" /></a></div>
				</div>
				<div class="banner_bt">
					<ul class="clsBannerButton" id="label_2">
						<li overclass="on" outclass="" class="on"><a href="javascript:;"><span class="num1"></span><em>금전궁합</em> 2%부족한 당신의 가슴을 든든하게 만들어주세요.</a></li>
						<li overclass="on" outclass=""><a href="javascript:;"><span class="num2"></span>스타운세</a></li>
						<li overclass="on" outclass=""><a href="javascript:;"><span class="num3"></span>궁합연애</a></li>
						<li overclass="on" outclass=""><a href="javascript:;"><span class="num4"></span>[이벤트]</a></li>
					</ul>
				</div>
			</div>
			<!--//키비주얼배너-->
			
			
			<div class="w_lg">
				<?	if ($sess_userinfo['login_yn'] == 'N') : ?>
				<!--로그아웃박스-->
				<div class="logoutBox">
					<form method="post" name="frm_login" id="frm_login" action="<?=SSL_ROOT_URL?>/member/login/check?return_url=/main">
						<fieldset >
							<span class="ibg1"><input type="text" name="user_id" id="user_id" ></span>
							<span class="ibg2"><input type="password" name="pwd" id="pwd" /></span>
							<button title="검색" type="submit"></button>
						</fieldset>
					</form>
					<p class="member"><input type="checkbox" name="cookieSaveId" id="cookieSaveId" value="Y" class="input_check" /> <label for="cookieSaveId">ID 저장</label> <Em>|</Em> <a href="/member/join"><strong>운신 회원가입</strong></a> <Em>|</Em> <a href="/member/login/find">ID / PW 찾기</a> </p>
				</div>
				<!--//로그아웃박스-->
				<?	else : ?>
				<!--로그인박스-->
				<div class="loginBox">
					<dl>
						<img src="<?=$member['member_img_url']?>" class="img" />
						<dt><img src="/images/common/grade_<?=$member['class_name'] == 'VIP회원' ? '1' : '2'?>.jpg" /></dt>
						<dd><strong><?=$member['nickname']?></strong>님<br/>방문해 주셔서 감사합니다 </dd>
					</dl>
					<ul>
						<li><a href="/mypage/mypage">마이페이지</a></li>
						<li>|</li>
						<li><a href="/mypage/service_history">내가본운세</a></li>
						<li>|</li>
						<li><a href="/member/login/logout">로그아웃</a></li>
					</ul>
				</div>
				<!--//로그인박스-->
				<?	endif ?>				
				
				<!--오늘의 운세-->
				<div class="today">
					<h3><img src="/images/main/tit_today.gif" alt="오늘의 운세"></h3>
<?
	if ($sess_userinfo['login_yn'] == 'Y') {
		$action_url = '/unse/free/today/result';
	} else {
		$action_url = '/unse/free/todaypreview/result';
	}
?>
					<form id="frm_today" method="post" action="<?=$action_url?>">
						<input type="hidden" name="target_yyyy" id="target_yyyy" readonly="readonly" value="<?=date("Y",time());?>" />
						<div class="form">
							<p>
								<strong>이름</strong><input name="user_name" type="text" value="<?=$sess_userinfo['login_yn'] == 'Y' ? $member['user_name'] : ''?>" class="inpText" />
								<select name="sex" id="sex" class="input_select">
									<option value="남" <?=$member['sex'] == 'M' ? 'selected="selected"' : ''?>>남자</option>
									<option value="여" <?=$member['sex'] == 'F' ? 'selected="selected"' : ''?>>여자</option>
								</select>
							</p>
							<p>
								<select name="birth_yyyy" id="birth_yyyy" class="input_select">
<?	for ($year = 1930; $year <= 2012; $year++) : ?>
									<option value="<?=$year?>" <?=$member['birth_yyyy'] == $year ? 'selected="selected"' : '';?>><?=$year?></option>
<?	endfor ?>
								</select> 년
								<select name="birth_mm" id="birth_mm" class="input_select">
<?	for ($month = 1; $month <= 12; $month++) : ?>
<?		$str_month = str_pad($month, 2, '0', STR_PAD_LEFT); ?>
									<option value="<?=$str_month?>" <?=$member['birth_mm'] == $str_month ? 'selected="selected"' : '';?>><?=$month?></option>
<?	endfor ?>
								</select> 월
								<select name="birth_dd" id="birth_dd" class="input_select">
<?	for ($day = 1; $day <= 31; $day++) : ?>
<?		$str_day = str_pad($day, 2, '0', STR_PAD_LEFT); ?>
									<option value="<?=$str_day?>" <?=$member['birth_dd'] == $str_day ? 'selected="selected"' : '';?>><?=$day?></option>
<?	endfor ?>
								</select> 일
							</p>
							<p>
								<select name="birth_hh" id="birth_hh" style=" width:120px;">
									<option value="">태어난 시각</option>
									<option value="0" <?=$member['birthtime'] == '0' ? 'selected="selected"' : ''?>>모름</option>
									<option value="01" <?=$member['birthtime'] == '01' ? 'selected="selected"' : ''?>>子 (23:30 ~ 01:29)</option>
									<option value="02" <?=$member['birthtime'] == '02' ? 'selected="selected"' : ''?>>丑 (01:30 ~ 03:29)</option>
									<option value="04" <?=$member['birthtime'] == '04' ? 'selected="selected"' : ''?>>寅 (03:30 ~ 05:29)</option>
									<option value="06" <?=$member['birthtime'] == '06' ? 'selected="selected"' : ''?>>卯 (05:30 ~ 07:29)</option>
									<option value="08" <?=$member['birthtime'] == '08' ? 'selected="selected"' : ''?>>辰 (07:30 ~ 09:29)</option>
									<option value="10" <?=$member['birthtime'] == '10' ? 'selected="selected"' : ''?>>巳 (09:30 ~ 11:29)</option>
									<option value="12" <?=$member['birthtime'] == '12' ? 'selected="selected"' : ''?>>午 (11:30 ~ 13:29)</option>
									<option value="14" <?=$member['birthtime'] == '14' ? 'selected="selected"' : ''?>>未 (13:30 ~ 15:29)</option>
									<option value="16" <?=$member['birthtime'] == '16' ? 'selected="selected"' : ''?>>申 (15:30 ~ 17:29)</option>
									<option value="18" <?=$member['birthtime'] == '18' ? 'selected="selected"' : ''?>>酉 (17:30 ~ 19:29)</option>
									<option value="20" <?=$member['birthtime'] == '20' ? 'selected="selected"' : ''?>>戌 (19:30 ~ 21:29)</option>
									<option value="22" <?=$member['birthtime'] == '22' ? 'selected="selected"' : ''?>>亥 (21:30 ~ 23:29)</option>
								</select>
								<select name="birth_solunar" id="birth_solunar" style=" width:80px;">
									<option value="S_C" <?=$member['birth_solunar'] == 'S' && $member['cl_year'] == 'C' ? 'selected="selected"' : ''?>>양력</option>
									<option value="L_C" <?=$member['birth_solunar'] == 'L' && $member['cl_year'] == 'C' ? 'selected="selected"' : ''?>>음력(평달)</option>
									<option value="L_L" <?=$member['birth_solunar'] == 'L' && $member['cl_year'] == 'L' ? 'selected="selected"' : ''?>>음력(윤달)</option>
								</select>
							</p>
							<p class="btn"><button title="운세보기" type="submit"></button></p>
						</div>
					</form>
				</div>
				<!--//오늘의 운세-->
			</div>
		</div>
	</div>
	<!-- // 키비쥬얼배너 / 로그인박스 / 오늘의 운세 -->
	
	<!-- 스타검색 -->
	<div class="w_star">
		<div class="s_box">
			<ul class="bn_s">
				<li><a href="javascript:;">김수현</a></li>
				<li>/</li>
				<li><a href="javascript:;">김태희</a></li>
				<li>/</li>
				<li><a href="javascript:;">장동건</a></li>
			   	<li>/</li>
				<li><a href="javascript:;">한지민</a></li>
				<li>/</li>
				<li><a href="javascript:;">재범</a></li>
				<li>/</li>
				<li><a href="javascript:;">수지</a></li>
			</ul>
			<form name="frm_search" id="frm_search" method="post" action="/unse/star/total/main#search">
				<fieldset>
					<span><input type="text" name="search_keyword" id="search_keyword"></span>
					<button title="검색" type="submit" ></button>
				</fieldset>
			</form>
		</div>
	</div>
	<!--// 스타검색 -->
	
	<!--서브컨텐츠-->
	<div id="content">
		<!--왼쪽컨텐츠-->
		<div class="c_left">
			<!--스타궁합랭킹-->
			<div class="star_cn">
				<h3 class="c271568"><a href="#"><img src="/images/main/tit_ranking.gif" alt="스타궁합랭킹"></a><em><?=date('Y.m',time())?></em></h3>
				<ul class="ranking">
<?	$num = 1; ?>
<?	foreach ($star_gunghap_ranking_list as $item) : ?>
					<li>
						<span class="group"><em class="num<?=$num++?>"><?=mb_substr($item['artist_name'], 0, 2, 'utf-8')?>*</em>
						<span class="job">/<?=$item['job']?></span></span>
						<span class="txt1"><strong><?=$item['cnt']?></strong> 명</span>
					</li>
<?	endforeach ?>	
				</ul>
			</div>
			<!--//스타궁합랭킹-->
			<!--추천테마-->
			<div class="theme">
				<h3><img src="/images/main/tit_theme.gif" alt="추천테마"></h3>
				<ul>
					<li><a href="/unse/tojung/total/form?year=2012"><img src="/images/main/theme01.gif" /></a></li>
					<li><a href="/unse/adult/total/form"><img src="/images/main/theme02.gif" /></a></li>
					<li class="end"><a href="/unse/saju/total/form"><img src="/images/main/theme03.gif" /></a></li>
				</ul>
			</div>
			<!--//추천테마-->
			
			<!--금전궁합배너-->
			<p class="m_bn"><a href="/unse/money/gunghap/form"><img src="/images/main/bn_money2.png" /></a></p>
			<!--//금전궁합배너-->
			
			<!--공지사항리스트-->
			<div class="board">
				<div class="tit">
					<h3><img src="/images/main/tit_notice.gif" /></h3>
					<span class="more"><a href="/cs/notice">더보기</a></span>
				</div>
				<ul>
<?	foreach ($notice_list as $item) : ?>
					<li><a href="/bbs/<?=$item['category']?>/read?idx=<?=$item['idx']?>"><em>[<?=$item['cate_name']?>]</em> <?=mb_substr($item['subject'],0,18-mb_strlen($item['cate_name'],'utf-8'),'utf-8')?> </a></li>
<?	endforeach ?>
				</ul>
				<p><img src="/images/main/cs.gif" alt="02)3219-8253" /></p>
			</div>
			<!--//공지사항리스트_추가-->
		</div>
		<!--//왼쪽컨텐츠-->
		
		<!--중앙컨텐츠-->
		<div class="c_center">
			<!--오늘의스타-->
			<div class="today_s">
				<a href="/unse/star/todaybirth/main" class="c271568"><h3><?=date('Y.m.d',time())?></h3></a>
				<div class="slide">
					<p class="pre">이전</p>
<?	for ($i = 0; $i < count($today_artist_list); $i++) : ?>
					<div>
						<a href="/unse/star/todaybirth/main" class="img"><img src="<?=$today_artist_list[$i]['photo']?>" width="93" height="114" /></a>
						<dl>
							<dt><?=$today_artist_list[$i]['artist_name']?></dt>
							<dd><em>생년월일</em><?=$today_artist_list[$i]['birth_yyyy']?>년 <?=$today_artist_list[$i]['birth_mm']?>월 <?=$today_artist_list[$i]['birth_dd']?>일</dd>
							<dd><em>직업</em><?=mb_substr($today_artist_list[$i]['job'],0,8,'utf-8')?></dd>
							<dd><em>신체사이즈</em><?=$today_artist_list[$i]['body']?></dd>
							<dd><a href="javascript:;" onclick="result('<?=$today_artist_list[$i]['idx']?>','<?=$today_artist_list[$i]['artist_name']?>','<?=$today_artist_list[$i]['sex']?>','<?=$today_artist_list[$i]['birth_yyyy']?>','<?=$today_artist_list[$i]['birth_mm']?>','<?=$today_artist_list[$i]['birth_dd']?>');"><img src="/images/main/btn_unse.gif" alt="운세보기"></a><a href="javascript:;" onclick="gunghap('<?=$today_artist_list[$i]['idx']?>','<?=$today_artist_list[$i]['artist_name']?>','<?=$today_artist_list[$i]['sex']?>','<?=$today_artist_list[$i]['birth_yyyy']?>','<?=$today_artist_list[$i]['birth_mm']?>','<?=$today_artist_list[$i]['birth_dd']?>');"><img src="/images/main/btn_conect.gif" alt="매칭하기"></a></dd>
						</dl>
					</div>
<?	endfor ?>
					<p class="next">다음</p>
				</div>
				<div class="alist">
					<ul>
<?
	$last_idx = 3;
	$last_idx = count($today_artist_list) < $last_idx ? count($today_artist_list) : $last_idx;
?>
<?	for ($i = 1; $i < $last_idx; $i++) : ?>
						<li><img src="/images/common/icon_star/icon_<?=$today_artist_list[$i]['job_icon']?>.png" align="absmiddle"> <?=$today_artist_list[$i]['artist_name']?> <em><?=$today_artist_list[$i]['job']?></em></li>
<?	endfor ?>
					</ul>
				</div>
			</div>
			<!--//오늘의스타-->
			<!--실시간인기운세차트-->
				<div class="time">
					<h3><img src="/images/main/tit_time.gif" alt="실시간인기운세차트" align="absmiddle"></h3>
					<ul class="ranking">
						<li>
							<em class="num1"></em><a href="/unse/money/gunghap/form"class="img"><img src="/images/common/sum/sum_money_86.jpg" align="absmiddle" ></a>
							<span class="rank1">new</span>
							<span class="txt1"><a href="/unse/money/gunghap/form">금전궁합</a> <span class="txt2"><a href="/unse/money/gunghap/form">사랑만이 전부? <br />이제는 현실이다.</a></span></span>
						</li>
						<li>
							<em class="num2"></em>
							<span class="rank3">1</span>
							<span class="txt3"><a href="/unse/star/gunghap/form">스타와 나의 궁합은?</a></span>
						</li>
						<li>
							<em class="num3"></em>
							<span class="rank2">1</span>
							<span class="txt3"><a href="/unse/money/mymoney/form">나의 재무상태 파악해보자</a></span>
						</li>
						<li>
							<em class="num4"></em>
							<span class="rank0">-</span>
							<span class="txt3"><a href="/unse/adult/total/form">남들에게는 말 못할 속사정..</a></span>
						</li>
						<li>
							<em class="num5"></em>
							<span class="rank1">new</span>
							<span class="txt3"><a href="/unse/tojung/total/form?year=2012">난 2012년을 미리 준비한다!</a></span>
						</li>
					</ul>
				</div>
				<!--//실시간인기운세차트-->	
				 <!--실시간 스타궁합점수-->
				<div class="star_time">
					<h3><img src="/images/main/tit_conect.gif" alt="실시간스타궁합점수" align="absmiddle"></h3>
					<p><img src="/images/main/sstit_conect.gif" alt="순위,아이디,스타명,궁합점수" /></p>
					<ul class="ranking">
<?	$num = 1; ?>
<?	foreach ($star_gunghap_result_list as $item) : ?>
						<li>
							<span class="group"><em class="num<?=$num++?>"></em>
							<span class="txt1"><strong><?=mb_substr($item['user_id'], 0, 8, 'utf-8')?><?=mb_strlen($item['user_id']) > 8 ? '..' : ''?></strong></span>
							<span class="txt2"><strong><?=mb_substr($item['artist_name'], 0, 2, 'utf-8')?>*</strong></span></span>
							<span class="txt3"><strong><?=$item['score']?></strong> 점</span>
						</li>
<?	endforeach ?>						
					</ul>
					<span class="count"><strong><?=number_format($star_gunghap_total_cnt+1400)?></strong> 명</span><a href="/unse/star/gunghap/form" class="go"><img src="/images/main/btn_concect.gif" /></a>
				</div>
				<!--//실시간 스타궁합점수-->
					
				<!--사진으로보는스타운세-->
			<div class="star_pt">
				<h4><img src="/images/main/tit_star_pt.gif" /></h4>
				<ul>
<?	foreach ($starpt_list as $item) : ?>
					<li>
						<a href="/bbs/starpt/read?idx=<?=$item['idx']?>"><img src="<?=str_replace('_SIZE', '_153', $item['file'][0]['thumb_url'])?>" /></a>
						<span class="link"><a href="/bbs/starpt/read?idx=<?=$item['idx']?>"><?=$item['subject']?></a></span>
					</li>
<?	endforeach ?>
				</ul>
			</div>
			<!--//사진으로보는스타운세-->
			<!--띠별운세_추가-->
			<div class="t_zodiac">
				<h4><img src="/images/main/tit_zodiac.gif" alt="오늘의 띠별운세" /></h4>
				<ul>
					<li><a href="/unse/free/todayline/result?linenum=10#pp">쥐띠</a></li>
					<li><a href="/unse/free/todayline/result?linenum=11#pp">소띠</a></li>
					<li class="center"><a href="/unse/free/todayline/result?linenum=0#pp">호랑이띠</a></li>
					<li><a href="/unse/free/todayline/result?linenum=1#pp">토끼띠</a></li>
					<li><a href="/unse/free/todayline/result?linenum=2#pp">용띠</a></li>
					<li class="end"><a href="/unse/free/todayline/result?linenum=3#pp">뱀띠</a></li>
					<li class="left"><a href="/unse/free/todayline/result?linenum=4#pp">말띠</a></li>
					<li><a href="/unse/free/todayline/result?linenum=5#pp">양띠</a></li>
					<li class="center"><a href="/unse/free/todayline/result?linenum=6#pp">원숭이띠</a></li>
					<li ><a href="/unse/free/todayline/result?linenum=7#pp">닭띠</a></li>
					<li ><a href="/unse/free/todayline/result?linenum=8#pp">개띠</a></li>
					<li class="end"><a href="/unse/free/todayline/result?linenum=9#pp">돼지띠</a></li>
				</ul>
			</div>
			<!--//띠별운세_추가-->
			
		</div>
		<!--//중앙컨텐츠-->
		
		<!--오른쪽 컨텐츠-->
		<div class="c_right">
			<!--2012토정비결-->
			<script language="javascript" src="http://ad1.sportschosun.com/js.kti/szo/unsin@mainbanner"></script>
			<!--//2012토정비결-->
			
			<!--후기게시판-->
			<div class="board">
				<div class="tit">
					<h3><img src="/images/main/tit_board.gif" /></h3>
					<span class="more"><a href="/bbs/postscript">더보기</a></span>
				</div>
				<ul class="review">
					<li>
						<a href="/bbs/postscript/read?idx=<?=$postscript_list[0]['idx']?>"class="img"><img src="/images/main/sample1.jpg" align="absmiddle"  /></a>
						<span class="txt1"><a href="/bbs/postscript/read?idx=<?=$postscript_list[0]['idx']?>"><?=$postscript_list[0]['service_name']?></a> </span>
						<span class="txt2"><a href="/bbs/postscript/read?idx=<?=$postscript_list[0]['idx']?>"><?=$postscript_list[0]['nickname']?></a></span>
						<span class="txt3"><a href="/bbs/postscript/read?idx=<?=$postscript_list[0]['idx']?>"><?=mb_strlen($postscript_list[0]['subject'], 'utf-8') > 17 ? mb_substr($postscript_list[0]['subject'], 0, 17, 'utf-8').'..' : $postscript_list[0]['subject']?></a></span>
					</li>
<?
	$cnt = count($postscript_list);
	for ($i=1; $i < $cnt; $i++) { 
		$item = $postscript_list[$i] ;
?>
					<li <?=$i == $cnt-1 ? 'class="end"' : ''?>><a href="/bbs/postscript/read?idx=<?=$item['idx']?>"><?=mb_strlen($item['subject'], 'utf-8') > 24 ? mb_substr($item['subject'], 0, 24, 'utf-8').'..' : $item['subject']?></a></li>
<?	} ?>
					<!--li class="end"><a href="#">다른 분들도 꼭 자신의 길을 찾아보세요.</a></li-->
				</ul>
			</div>
			<!--//후기게시판-->
			
			<!--추천느낌충만-->
			<div class="choice">
				<div class="tit">
					<h3><img src="/images/main/tit_feel.gif" alt="추천느낌충만" /></h3>
					<div class="np_bt">
						<p class="cprev_bt"><a href="javascript:;" >이전</a></p>
						<p class="cnext_bt"><a href="javascript:;" >다음</a></p>
					</div>
				</div>
				<div class="choice_cont">
					<a href="/unse/star/total/main" class="img"><img src="/images/main/star_1.jpg" width="116" height="107" align="absmiddle" /></a>
					<strong class="txt1">[스타운세] </strong>
					<strong class="txt2">스타 궁합</strong>
					<span class="txt3">좋아하는 스타와 궁합</span>
					<a href="javascript:;" onclick="window.open('/static/unse/star_gunghap_prev_pop.php','','width=800,heigth=1000,scrollbars=yes')" class="bt"><img src="/images/main/btn_review.gif" alt="미리보기" /></a>
					<a href="/unse/star/gunghap/form" class="bt"><img src="/images/main/btn_buy.gif" alt="결제하기" /></a>
				</div>
				<div class="choice_cont" style="display: none">
					<a href="/unse/money/mymoney/form" class="img"><img src="/images/main/money.jpg" width="116" height="107" align="absmiddle" /></a>
					<strong class="txt1">[금전궁합] </strong>
					<strong class="txt2">2012 운수..</strong>
					<span class="txt3">현실적으로 생각하자!</span>
					<a href="javascript:;" onclick="window.open('/static/unse/money_mymoney_prev_pop.php','','width=800,heigth=1000,scrollbars=yes')" class="bt"><img src="/images/main/btn_review.gif" alt="미리보기" /></a>
					<a href="/unse/money/mymoney/form" class="bt"><img src="/images/main/btn_buy.gif" alt="결제하기" /></a>
				</div>
			</div>
			<!--//후기게시판-->
			 <!--무료운세바로가기_추가-->
				<div class="free_total">
					<ul class="f_left">
					<li class="free01"><a href="/unse/free/today/form">오늘의운세</a></li>
					<li class="free02"><a href="/unse/free/blood/result">혈액형운세</a></li>
					<li class="free03"><a href="/unse/free/todayline/result">오늘의띠별운세</a></li>
					<li class="free04"><a href="/unse/free/bloodgunghap/form">혈액형궁합</a></li>
					<li class="free05"><a href="/unse/free/dreamsolve/result">꿈해몽태몽</a></li>
					<li class="free06"><a href="/unse/free/tarot/form">타로점성술</a></li>
					<li class="free07"><a href="/unse/free/conste/result">별자리운세</a></li>
					<li class="free08"><a href="/unse/free/birthstone/result">탄생석점</a></li>
					</ul>
				</div>
			<!--//무료운세바로가기_추가-->
			
			
		</div>
		<!--//오른쪽 컨텐츠-->
		
		<!--서비스배너-->
		<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/bn_service.php'; ?>
		<!--//서비스배너-->
	</div>
	<!--//서브컨텐츠-->
	
	<!-- Footer -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_footer.php'; ?>
	<!--// Footer -->
	
</div>
<!--// 컨텐츠-->

</body>
</html>
